Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CTL] Add variadic functions #1123

Draft
wants to merge 1 commit into
base: v0.12.x-dev
Choose a base branch
from

Conversation

KFilipek
Copy link
Contributor

@KFilipek KFilipek commented Feb 21, 2025

[CTL] Add variadic functions

Description

Since this PR all the CTL API functions (umfCtlSet/Get/Exec)
will be defined as a variadic functions to provide more elastic
approach in future development.

Checklist

Depends on #1073
Resolves #1085

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly

@KFilipek KFilipek requested a review from a team as a code owner February 21, 2025 11:43
@KFilipek KFilipek self-assigned this Feb 21, 2025
@KFilipek KFilipek force-pushed the task-ctl_variadic branch 2 times, most recently from d5b2769 to 46b49d9 Compare February 21, 2025 12:02
@KFilipek KFilipek marked this pull request as draft February 21, 2025 13:50
@KFilipek KFilipek changed the base branch from main to v0.12.x-dev February 25, 2025 14:55
@KFilipek KFilipek requested a review from PatKamin February 25, 2025 15:04
@KFilipek KFilipek marked this pull request as ready for review February 25, 2025 15:22
src/libumf.def Outdated
@@ -119,6 +119,9 @@ EXPORTS
umfScalablePoolParamsSetKeepAllMemory
; Added in UMF_0.11
umfCUDAMemoryProviderParamsSetAllocFlags
umfCtlExec
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please move CTL functions to 0.12 namespace

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, bump OPS structure version to 0.12

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated structures for pool and provider, and also def+map files.

Since this commit all the CTL API functions (umfCtlSet/Get/Exec)
will be defined as a variadic functions to provide more elastic
approach in future development.
Copy link
Contributor

@lplewa lplewa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR changes nothing.

variadic args idea, for CTL was about replaceing ctx (and potentaily other args) with wildcards in "name". So you can do something like this
"umf.pool.byHandle.%p.arena.%d.something", ctx, 1

@KFilipek KFilipek marked this pull request as draft February 28, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CTL - add variadic arguments API
4 participants